
#ifndef MAINFRAME_H_
#define MAINFRAME_H_

#include <wx/wx.h>
#include <wx/docview.h>
#include <wx/aui/aui.h>
//#include <wx/aui/auibook.h>

#define MainFrameTitle _( "Hieroglyphics" )

class FontsetNotebook;

class MainFrame : public wxDocParentFrame
{
    DECLARE_DYNAMIC_CLASS( MainFrame )

private:
    wxAuiManager    mAuiManager;
    void CreateControls();
    wxMenuBar* CreateMenuBar();
    wxToolBar* CreateToolbar();

public:
    MainFrame(void);
    MainFrame( wxDocManager* docManager, wxFrame* parent, wxWindowID id = wxID_ANY, const wxString& title = MainFrameTitle );
    ~MainFrame(void);

    enum
    {
        ID_TABBED_PROJECT_CONTAINER = wxID_HIGHEST + 1
    };

    FontsetNotebook* mTabbedProjectContainer;

    bool Create( wxDocManager* docManager, wxFrame* parent, wxWindowID id = wxID_ANY, const wxString& title = MainFrameTitle );

    DECLARE_EVENT_TABLE()
    void OnExit( wxCommandEvent& event );
    void OnNewFontset( wxCommandEvent& event );
    void OnProjectInformation( wxCommandEvent& event );
    void OnViewGridlines( wxCommandEvent& event );
    void OnUpdateViewGridlines( wxUpdateUIEvent& event );
    void OnViewWidths( wxCommandEvent& event );
    void OnUpdateViewWidths( wxUpdateUIEvent& event );
    void OnAboutBox( wxCommandEvent& event );

};

#endif  // MAINFRAME_H_
